package com.example.controller;

import com.example.entity.DetailsLogs;
import com.example.entity.Page.PageRequest;
import com.example.result.CommonResult;
import com.example.service.DetailsLogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: tobed
 * @date: 2022/11/17
 * @time: 18:54
 */
@RestController
@RequestMapping("detailsLogs")
public class DetailsLogsController {

    @Autowired
    DetailsLogsService detailsLogsService;

    /*全查方法*/
    @GetMapping("list")
    public CommonResult list(PageRequest pageRequest, DetailsLogs detailsLogs){
        CommonResult commonResult = detailsLogsService.list(pageRequest,detailsLogs);
        return commonResult;
    }

}
